<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ page import="goods.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ include file="/Dmyna/admin/head.jsp" %>

<%
	String gs_code = request.getParameter("gs_code");
	//System.out.println("gs_code"+gs_code);
	GoodsManager goodsManager = GoodsManager.getInstance();
	GoodsItem goodsItem = goodsManager.select(gs_code);
%>
<c:set var="goodsItem" value="<%=goodsItem%>" />

<form action="Delete.jsp" method="post" onsubmit="return validate(this)">
<input type="hidden" name="gs_code" value="${goodsItem.gs_code }" />
<table width="900" border="1" align="center">

		<tr>
			<td>상품코드</td>
			<td>${goodsItem.gs_code }</td>
		</tr>
		<tr>
			<td>상품이름</td>
			<td>${goodsItem.gs_name }</td>
		</tr>
		<tr>
			<td>원가격</td>
			<td>${goodsItem.gs_org_price }</td>
		</tr>
		<tr>
			<td>할인가격</td>
			<td>${goodsItem.gs_sale_price }</td>
		</tr>
		<%-- <tr>
			<td>이미지</td>
			<td><img src="${goodsItem.img }" width="150" border="0" /></td>
		</tr>  --%>
		<tr>
			<td colspan="2" align="center">
			<%-- <input type="submit" value="삭제" /> --%>
			<input type="submit" value="삭제" onclick="javascript:validate()" />
			<input type="button" value="취소" onclick="javascript:history.go(-1)" /></td>
		</tr>

</table>
</form>
<%@ include file="/Dmyna/admin/tail.jsp" %>

